import React, {Component} from 'react';
import './PlayAll.css';
import SearchMusicList from "../../Search/SearchMusicList/SearchMusicList";

class PlayAll extends Component {
	render() {
		// console.log(this.props);
		return (
			<div className='playAll'>
				<div className="title">
					<div className="left"><i className='iconfont icon-bofang'/>播放全部 <span className='sum'>(共10首)</span></div>
					<div className="right"><i className='iconfont icon-jiahao1'/>&nbsp;收藏({Math.floor(this.props.subscribedCount/1000)/10}万)</div>
				</div>
				<SearchMusicList songs={this.props.tracks}/>
			</div>
		);
	}
}

export default PlayAll;